<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>王力门业</title>
    <link rel="stylesheet" href="css/reset.css">
    <style>
        html,body{
            width: 100%;
            height: 100%;
        }
        #banner{
            width: 100%;
            /* 自适应 百分比高度 */
            height:84% ;
            background: red
        }
        #banner img{
            width: 100%;
            height: 100%
        }
        #nav{
            height: 11%;
            /* background: pink; */
            position: relative;
        }
        #nav p{
            width: 100%;
            height: 100%;
            text-align: center;
            /* 定位 */
            position: absolute;
            top: 43%;
        }
        #nav p a{
            font-size: 12px;
            color: #7c7c7c;
            padding: 0 1%;
        }
        #foot{
            height: 5%;
            /* css3  */
            background:linear-gradient(#c2c2c2,#cecece,#d8d8d8,#e2e2e2,#f0f0f0) ;
            position: relative;
        }
        #foot p{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 40%;
            text-align: center;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <!-- banner -->
    <div id="banner">
        <img src="images/banner_01.jpg" alt="">
    </div>
    <!-- nav -->
    <div id="nav">
        <p>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
            <a href="">首页</a>
        </p>
    </div>
    <!-- foot -->
    <div id="foot">
        <p>版权所有版权所有版权所有版权所有版权所有版权所有版权所有版权所有版权所有</p>
    </div>
</body>
</html>